package com.bank.backend.boot.server.converter;


import com.bank.backend.boot.base.model.dto.BankBaseDTO;
import com.bank.backend.boot.base.model.entity.BankBase;
import com.bank.backend.boot.server.annotation.MappingIgnore;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author jiaowei
 * @since 2025/3/25 20:49
 */
@Mapper(componentModel = "spring")
public interface BankBaseConverter {
    BankBaseConverter INSTANCE = Mappers.getMapper(BankBaseConverter.class);

    BankBaseDTO convert(BankBase bankBase);

    @MappingIgnore
    BankBase convert(BankBaseDTO bankBaseDTO);
}
